package org.ihelpuoo.weboo.tag;

import java.util.ArrayList;
import java.util.List;

import org.ihelpuoo.algorithm.random.StringGenerator;

public class NVProcessor implements Processor
{

	public Object execute(ProcessContext context) throws Exception
	{
		int max = 10;
		List<NV> list = new ArrayList<NV>(max);
		StringGenerator sg = new StringGenerator(10);
		for (int i = 0; i < max; i++)
			list.add(new NV(sg.next(),sg.next()));

		return list;
	}

	public class NV
	{
		public NV(String name, String value)
		{
			this.name = name;
			this.value = value;
		}

		private String	name;
		private String	value;

		public String getName()
		{
			return name;
		}

		public void setName(String name)
		{
			this.name = name;
		}

		public String getValue()
		{
			return value;
		}

		public void setValue(String value)
		{
			this.value = value;
		}

	}

}
